package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 商品属性
 * </p>
 *
 * @author greedwind
 * @since 2018-09-28
 */
@TableName("t_item_attribute")
public class ItemAttribute extends Model<ItemAttribute> {

    private static final long serialVersionUID = 1L;

    /**
     * 属性名id
     */
    @TableId(value = "attr_id", type = IdType.AUTO)
    private Integer attrId;
    /**
     * 属性名
     */
    @TableField("attr_name")
    private String attrName;
    /**
     * 是否高级选项(1-是，0-不是)
     */
    @TableField("is_senior")
    private Integer isSenior;
    /**
     * 有效性(1:有效; 0:删除)
     */
    @TableField("is_enabled")
    private Integer isEnabled;
    /**
     * 排序号(排序号越小越靠前)
     */
    @TableField("sort_num")
    private Integer sortNum;
    /**
     * 创建时间
     */
    private Date created;
    /**
     * 修改时间
     */
    private Date modified;


    public Integer getAttrId() {
        return attrId;
    }

    public void setAttrId(Integer attrId) {
        this.attrId = attrId;
    }

    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    public Integer getIsSenior() {
        return isSenior;
    }

    public void setIsSenior(Integer isSenior) {
        this.isSenior = isSenior;
    }

    public Integer getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(Integer isEnabled) {
        this.isEnabled = isEnabled;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getModified() {
        return modified;
    }

    public void setModified(Date modified) {
        this.modified = modified;
    }

    @Override
    protected Serializable pkVal() {
        return this.attrId;
    }

    @Override
    public String toString() {
        return "ItemAttribute{" +
        "attrId=" + attrId +
        ", attrName=" + attrName +
        ", isSenior=" + isSenior +
        ", isEnabled=" + isEnabled +
        ", sortNum=" + sortNum +
        ", created=" + created +
        ", modified=" + modified +
        "}";
    }
}
